package com.openspring.platform.service;

import java.util.List;

import com.openspring.framework.service.GenericService;
import com.openspring.platform.model.Dict;
import com.openspring.platform.model.Dictionary;

public interface DictService extends GenericService<Dict, Long> {

	/**
	 * 新建字典类别和字典项
	 * @param dict 字典类别
	 * @param dictionaries 字典项列表
	 */
	void create(Dict dict, List<Dictionary> dictionaries);
	
	/**
	 * 修改字典类别和字典项
	 * @param dict 字典类别
	 * @param dels 需删除字典项主键数组
	 * @param upds 需修改字典项数组
	 * @param ists 需新建字典项数组
	 */
	void modify(Dict dict, Long[] dels, List<Dictionary> upds, List<Dictionary> ists);
}
